﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace GameLib1
{
    class Camera
    {
        public static Matrix Transform = Matrix.Identity;
        public static Vector2 Position = new Vector2();

        public static void Update(float dt)
        {
            if (Keyboard.GetState().IsKeyDown(Keys.W))
                Position.Y += 10;
            if (Keyboard.GetState().IsKeyDown(Keys.S))
                Position.Y -= 10;

            if (Keyboard.GetState().IsKeyDown(Keys.A))
                Position.X += 10;
            if (Keyboard.GetState().IsKeyDown(Keys.D))
                Position.X -= 10;


            Transform = Matrix.CreateTranslation(Position.X, Position.Y, 0);
        }
    }
}
